﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace System.Windows.Media.DirectShow
{
    public interface IMemAllocator
    {
        AllocatorProperties Properties
        {
            get;
            set;
        }

        void Commit();

        void Decommit();

        IMediaSample GetBuffer(TimeSpan startTime, TimeSpan endTime);

        void ReleaseBuffer(IMediaSample sample);
    }
}
